package com.jdd.common.util;

/**
 * 响应码枚举，参考HTTP状态码的语义
 */
public final class ResultCode {
	public static final int SUCCESS = 200;//成功
	public static final int FAIL = 400;//失败
	public static final int UNAUTHORIZED = 401;//未认证（签名错误）未授权
	public static final int EXPIRED_TOKEN = 402;//token失效过期
	public static final int FORBIDDEN = 403;//禁止访问
	public static final int NOT_FOUND = 404;//接口不存在
	public static final int DUPLICATE_LOGIN = 405;//重复登录
	public static final int INVALID_CLIENT = 406;//无效客户端
	public static final int PARAMETER_ERROR = 407;//参数错误
	public static final int REQUEST_TIMEOUT = 408;//请求超时
	public static final int SIGN_ERROR = 409;//签名错误
	public static final int API_NOT_FOUND = 410;//api接口不存在
	public static final int VERSION_ERROR = 411;//版本错误
	public static final int SERIAL_ERROR = 412;//序列化异常
	public static final int TOKEN_INVALID = 413;//token无效
	public static final int TOKEN_NULL = 414;//token为空
	public static final int USER_ACCOUNT_LOCK = 415;//用户账号锁定
	public static final int USER_NOT_EXIST = 416;//用户不存在
	public static final int USER_UNLAWFUL = 417;//非法用户

	public static final int INTERNAL_SERVER_ERROR = 500;//服务器内部错误


	// ---------扩展 returnCode-----------
	/**
	 * 聚合支付返回 -1
	 */
	public static final int RETURN_CODE_NEGATIVE_ONE  = -1;

	/**
	 * 聚合支付返回 9999
	 */
	public static final int RETURN_CODE_NINE_THOUSAND_NINE_HUNDRED_AND_NINETY_NINE = 9999;
}
